import request from "./request";

export const getSearchList = data => {
	return request({
		url: 'api/public/v1/goods/qsearch',
		type: 'get',
		data,
		opts: { autoPrependPath: false },
	});
};

export const getGoodsList = data => {
	return request({
		url: 'api/public/v1/goods/search',
		type: 'get',
		data,
		opts: { autoPrependPath: false },
	});
};

export const getGoodsDetail = data => {
	return request({
		url: 'api/public/v1/goods/detail',
		type: 'get',
		data,
		opts: { autoPrependPath: false },
	});
};
